package com.pwc.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.pwc.testing.ITestingProcess;


@Configuration
@ComponentScan({ "com.pwc.dataAdaptor", "com.pwc.main", "com.pwc.testing", "com.pwc.common.Util" })
public class Main {

	public static void main(String[] args) {
		ApplicationContext context = new AnnotationConfigApplicationContext(Main.class);

		ITestingProcess process = context.getBean(ITestingProcess.class);

		// process.initial("C:\\Users\\ryuan018\\Desktop\\FusionTester\\chromedriver.exe",
		// "C:\\Users\\ryuan018\\Desktop\\FusionTester\\test.xlsx","chrome","C:\\Users\\ryuan018\\Desktop\\FusionTester\\log");

		process.initial("driver\\chromedriver.exe", "testCase\\FusionTestGL.xlsx", "chrome", "log");

		// firefox
		// process.initial("C:\\Users\\whuang072\\Desktop\\FusionTester\\firefox.exe",
		// "testCase\\adf-admin.xlsx","firefox","C:\\Users\\whuang072\\Desktop\\FusionTester\\log");

		process.process();

	}

}
